#define CHECKED_DELETE(x) if(x != NULL) { delete x; x = NULL; }
#define CHECKED_RELEASE(x) if(x != NULL) { x->Release(); x = NULL; }

#define GL_WIN_SIZE_X 800
#define GL_WIN_SIZE_Y 600

#define DISPLAY_MODE_OVERLAY	1
#define DISPLAY_MODE_DEPTH		2
#define DISPLAY_MODE_IMAGE		3
#define DEFAULT_DISPLAY_MODE	DISPLAY_MODE_DEPTH

#define MAX_DEPTH 10000

#define SAMPLE_XML_PATH "./config.xml"

#define ESCAPE_KEY 27